package com.python.project2.vo;

import com.python.project2.db.domain.MarketCategory;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description 频道VO
 * @Date 2023/4/1
 * @Author lixian
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ChannelVO {
	private Integer id;
	private String iconUrl;
	private String name;

	public ChannelVO(MarketCategory category) {
		this(category.getId(), category.getIconUrl(), category.getName());
	}
}

